package com.haois.ws.web.module.rbac.dao.mapper;

import com.haois.ws.web.module.rbac.daoman.Manager;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;


/**
 * Created by haol on 2017/3/14.
 */
@Repository
public interface ManagerMapper {

    Manager getByAccount(@Param("account") String account);

    void add(@Param("account") Manager manager);

    void update(@Param("account") Manager manager);

    void updateTime(@Param("id") String id, @Param("updateTime") String time);

    void updatePwd(@Param("account") Manager manager);

    void updateLogin(@Param("account") Manager manager);

    void updatePicture(@Param("id") String id, @Param("picture") String picture);

    Manager get(@Param("id") String id);


}
